Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
16 lines (9 loc) · 307 Bytes

6.4.2 - swoole_atomic->add.md

File metadata and controls

16 lines (9 loc) · 307 Bytes

swoole_atomic->add

增加计数

function swoole_atomic->add(int $add_value = 1)
  • $add_value要增加的数值,默认为1
  • $add_value必须为正整数
  • $add_value与原值相加如果超过42亿,将会溢出,高位数值会被丢弃
  • add方法操作成功后返回结果数值